package com.whmskj.xjlhbc.vo;

import cn.hutool.core.date.BetweenFormatter;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

/**
 * @author 张
 * @version 1.0
 */

@Data
public class GzTjVo {

    // 车间
    private String workShop;
    //维保日期
    private String vsDate;
    //维保次数
    private Integer f0a6;
    //维保时长
    private int guards;
    //平均时长
    private long f5c8;
    //配件数
    private int accessories = 0;

    public String getItsTimeconsuming(){
        return DateUtil.formatBetween(f5c8 * 1000L, BetweenFormatter.Level.SECOND);
    }

    public String getAvgItsTimeconsuming(){
        return DateUtil.formatBetween(guards * 1000L, BetweenFormatter.Level.SECOND);
    }
}
